﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Workbench.PresentationModel
{
    public class ValueDisplayItem
    {
        public ValueDisplayItem(object value, string display)
        {
            this.Value = value;
            this.Display = display;
        }

        public object Value { get; private set; }
        public string Display { get; private set; }

        public override string ToString()
        {
            return this.Display;
        }
    }

    public class ValueDisplayItem<T> : ValueDisplayItem
    {
        public ValueDisplayItem(T value, string display)
            : base(value, display)
        {
        }

        public T TypedValue
        {
            get { return (T)this.Value; }
        }
    }
}
